﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ChinaDynastyTours.Assets.DataSet;
using ChinaDynastyTours.Controls;
using ChinaDynastyTours.Assets;
using DevExpress.XtraEditors;
using ChinaDynastyTours.Helpers;
using System.IO;
using System.Threading;
using ChinaDynastyTours.Models;
using System.Globalization;

namespace ChinaDynastyTours.Views
{
    public partial class VoucherPrintForm : DevExpress.XtraEditors.XtraForm
    {
        public string _TourgroupID;
        private string _Names;

        public VoucherPrintForm(string tourgroupId,string names)
        {
            InitializeComponent();

            _TourgroupID = tourgroupId;
            _Names = names;
        }

        private void SchedulePrintForm_Load(object sender, EventArgs e)
        {
        }
        private void btnPreviewAndPrint_Click(object sender, EventArgs e)
        {
            SimpleButton btn = sender as SimpleButton;
            StringBuilder tmpStr = new StringBuilder();

            switch (voucher1Group.SelectedIndex)
            {
                case 0://酒店
                    DataTable dtHotelOrders = TeamGroupCtrl.GetScheduleHotelOrderForPrint(_TourgroupID);
                    HotelCEDataSet hotelDs = new HotelCEDataSet();
                     switch (voucher2Group.SelectedIndex)
                    {

                         case 0://CE

                            for (int i = 0; i < dtHotelOrders.Rows.Count; i++)
                            {
                                //先导入预订数据
                                hotelDs.Tables["HotelDetailData"].ImportRow(dtHotelOrders.Rows[i]);

                                //地接社信息
                                if (dtHotelOrders.Rows[i]["ScheduleMethod"].ToString() == HotelScheduleMethodEnum.自订.ToString())
                                {
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["TravelAgencyName"] = "北京龙润国际旅行社";
                                    
                                    DataTable dtUserInfo = TeamGroupCtrl.GetOwnerADataByTourgroupID(_TourgroupID);
                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", dtUserInfo.Rows[0]["Name"]);
                                    tmpStr.AppendFormat("Tel:{0}", dtUserInfo.Rows[0]["Mobile"]);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["Reception"] = tmpStr.ToString();
                                }
                                else if (dtHotelOrders.Rows[i]["TravelAgencyID"] != null && dtHotelOrders.Rows[i]["TravelAgencyID"].ToString() != "-1")
                                {
                                    ProviderEntity entity = BaseInfoCtrl.GetProviderDataByID(dtHotelOrders.Rows[i]["TravelAgencyID"].ToString());
                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", entity.EnglishName);
                                    tmpStr.AppendFormat("{0}", entity.FullName);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["TravelAgencyName"] = tmpStr.ToString();

                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", entity.Contact);
                                    tmpStr.AppendFormat("Tel:{0}", entity.Telephone);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["Reception"] = tmpStr.ToString();
                                }


                                //宾馆信息
                                ProviderEntity hotelentity = BaseInfoCtrl.GetProviderDataByID(dtHotelOrders.Rows[i]["HotelID"].ToString());
                                tmpStr.Remove(0, tmpStr.Length);
                                tmpStr.AppendFormat("{0}\r\n", hotelentity.EnglishName);
                                tmpStr.AppendFormat("Add:{0}\r\n", hotelentity.EnglishAddress);
                                tmpStr.AppendFormat("Tel:{0}\r\n", hotelentity.Telephone);
                                tmpStr.AppendFormat("{0}\r\n", hotelentity.ProviderName);
                                tmpStr.AppendFormat("Add:{0}", hotelentity.Address);
                                hotelDs.Tables["HotelDetailData"].Rows[i]["Hotel"] = tmpStr.ToString();

                                //房间信息
                                tmpStr.Remove(0, tmpStr.Length);
                                if (int.Parse(dtHotelOrders.Rows[i]["DoubleRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} chambre standard twin 标准双床间\r\n", dtHotelOrders.Rows[i]["DoubleRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["BigBedRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} chambre standard double 标准间大床间\r\n", dtHotelOrders.Rows[i]["BigBedRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["ThreeRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} chambre standard twin + lit extra 三人间\r\n", dtHotelOrders.Rows[i]["ThreeRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["SingleRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} chambre standard single 单间", dtHotelOrders.Rows[i]["SingleRoomNum"]);
                                hotelDs.Tables["HotelDetailData"].Rows[i]["RoomsInfo"] = tmpStr.ToString();

                                //城市信息
                                DataTable dtCity = BaseInfoCtrl.GetCityDataByName(dtHotelOrders.Rows[i]["DestinationCity"].ToString());
                                if (dtCity.Rows.Count > 0)
                                {
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["DestinationCity"] = dtCity.Rows[0]["Name"] + " / " + dtCity.Rows[0]["FrenchName"];
                                }
                                else
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["DestinationCity"] = dtHotelOrders.Rows[i]["DestinationCity"].ToString();
                            }

                            VoucherCEFrReport voucherCEFrRpt = new VoucherCEFrReport(_TourgroupID, _Names);
                            voucherCEFrRpt.DataSource = hotelDs;
                            if (btn.Equals(btnPreview))
                                voucherCEFrRpt.ShowPreviewDialog();
                            if (btn.Equals(btnPrint))
                                voucherCEFrRpt.PrintDialog();
                            break;
                        case 1://TE
                            break;
                        case 2://NH
                            break;
                        case 3://DT(French)
                            for (int i = 0; i < dtHotelOrders.Rows.Count; i++)
                            {
                                //先导入预订数据
                                hotelDs.Tables["HotelDetailData"].ImportRow(dtHotelOrders.Rows[i]);

                                //地接社信息
                                if (dtHotelOrders.Rows[i]["ScheduleMethod"].ToString() == HotelScheduleMethodEnum.自订.ToString())
                                {
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["TravelAgencyName"] = "北京龙润国际旅行社";

                                    DataTable dtUserInfo = TeamGroupCtrl.GetOwnerADataByTourgroupID(_TourgroupID);
                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", dtUserInfo.Rows[0]["Name"]);
                                    tmpStr.AppendFormat("Tel:{0}", dtUserInfo.Rows[0]["Mobile"]);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["Reception"] = tmpStr.ToString();
                                }
                                else if (dtHotelOrders.Rows[i]["TravelAgencyID"] != null && dtHotelOrders.Rows[i]["TravelAgencyID"].ToString() != "-1")
                                {
                                    ProviderEntity entity = BaseInfoCtrl.GetProviderDataByID(dtHotelOrders.Rows[i]["TravelAgencyID"].ToString());
                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", entity.EnglishName);
                                    tmpStr.AppendFormat("{0}", entity.FullName);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["TravelAgencyName"] = tmpStr.ToString();

                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", entity.Contact);
                                    tmpStr.AppendFormat("Tel:{0}", entity.Telephone);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["Reception"] = tmpStr.ToString();
                                }

                                //宾馆信息
                                ProviderEntity hotelentity = BaseInfoCtrl.GetProviderDataByID(dtHotelOrders.Rows[i]["HotelID"].ToString());
                                tmpStr.Remove(0, tmpStr.Length);
                                tmpStr.AppendFormat("{0}\r\n", hotelentity.EnglishName);
                                tmpStr.AppendFormat("Add:{0}\r\n", hotelentity.EnglishAddress);
                                tmpStr.AppendFormat("Tel:{0}\r\n", hotelentity.Telephone);
                                tmpStr.AppendFormat("{0}\r\n", hotelentity.ProviderName);
                                tmpStr.AppendFormat("Add:{0}", hotelentity.Address);
                                hotelDs.Tables["HotelDetailData"].Rows[i]["Hotel"] = tmpStr.ToString();

                                //房间信息
                                tmpStr.Remove(0, tmpStr.Length);
                                if (int.Parse(dtHotelOrders.Rows[i]["DoubleRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} chambre standard twin 标准双床间\r\n", dtHotelOrders.Rows[i]["DoubleRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["BigBedRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} chambre standard double 标准间大床间\r\n", dtHotelOrders.Rows[i]["BigBedRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["ThreeRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} chambre standard twin + lit extra 三人间\r\n", dtHotelOrders.Rows[i]["ThreeRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["SingleRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} chambre standard single 单间", dtHotelOrders.Rows[i]["SingleRoomNum"]);
                                hotelDs.Tables["HotelDetailData"].Rows[i]["RoomsInfo"] = tmpStr.ToString();

                                //城市信息
                                DataTable dtCity = BaseInfoCtrl.GetCityDataByName(dtHotelOrders.Rows[i]["DestinationCity"].ToString());
                                if (dtCity.Rows.Count > 0)
                                {
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["DestinationCity"] = dtCity.Rows[0]["Name"] + " / " + dtCity.Rows[0]["FrenchName"];
                                }
                                else
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["DestinationCity"] = dtHotelOrders.Rows[i]["DestinationCity"].ToString();
                            }

                            VoucherDTFrReport voucherDTFrRpt = new VoucherDTFrReport(_TourgroupID, _Names);
                            voucherDTFrRpt.DataSource = hotelDs;
                            if (btn.Equals(btnPreview))
                                voucherDTFrRpt.ShowPreviewDialog();
                            if (btn.Equals(btnPrint))
                                voucherDTFrRpt.PrintDialog();
                            break;
                        case 4://AL
                            break;
                        case 5://DT(English)
                            for (int i = 0; i < dtHotelOrders.Rows.Count; i++)
                            {
                                //先导入预订数据
                                hotelDs.Tables["HotelDetailData"].ImportRow(dtHotelOrders.Rows[i]);

                                //地接社信息
                                if (dtHotelOrders.Rows[i]["ScheduleMethod"].ToString() == HotelScheduleMethodEnum.自订.ToString())
                                {
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["TravelAgencyName"] = "北京龙润国际旅行社";

                                    DataTable dtUserInfo = TeamGroupCtrl.GetOwnerADataByTourgroupID(_TourgroupID);
                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", dtUserInfo.Rows[0]["Name"]);
                                    tmpStr.AppendFormat("Tel:{0}", dtUserInfo.Rows[0]["Mobile"]);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["Reception"] = tmpStr.ToString();
                                }
                                else if (dtHotelOrders.Rows[i]["TravelAgencyID"] != null && dtHotelOrders.Rows[i]["TravelAgencyID"].ToString() != "-1")
                                {
                                    ProviderEntity entity = BaseInfoCtrl.GetProviderDataByID(dtHotelOrders.Rows[i]["TravelAgencyID"].ToString());
                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", entity.EnglishName);
                                    tmpStr.AppendFormat("{0}", entity.FullName);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["TravelAgencyName"] = tmpStr.ToString();

                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", entity.Contact);
                                    tmpStr.AppendFormat("Tel:{0}", entity.Telephone);
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["Reception"] = tmpStr.ToString();
                                }

                                //宾馆信息
                                ProviderEntity hotelentity = BaseInfoCtrl.GetProviderDataByID(dtHotelOrders.Rows[i]["HotelID"].ToString());
                                tmpStr.Remove(0, tmpStr.Length);
                                tmpStr.AppendFormat("{0}\r\n", hotelentity.EnglishName);
                                tmpStr.AppendFormat("Add:{0}\r\n", hotelentity.EnglishAddress);
                                tmpStr.AppendFormat("Tel:{0}\r\n", hotelentity.Telephone);
                                tmpStr.AppendFormat("{0}\r\n", hotelentity.ProviderName);
                                tmpStr.AppendFormat("Add:{0}", hotelentity.Address);
                                hotelDs.Tables["HotelDetailData"].Rows[i]["Hotel"] = tmpStr.ToString();

                                //房间信息
                                tmpStr.Remove(0, tmpStr.Length);
                                if (int.Parse(dtHotelOrders.Rows[i]["DoubleRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} standard twin room 标准双床间\r\n", dtHotelOrders.Rows[i]["DoubleRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["BigBedRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} standard double room 标准间大床间\r\n", dtHotelOrders.Rows[i]["BigBedRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["ThreeRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} standard twin room + extra bed 三人间\r\n", dtHotelOrders.Rows[i]["ThreeRoomNum"]);
                                if (int.Parse(dtHotelOrders.Rows[i]["SingleRoomNum"].ToString()) != 0)
                                    tmpStr.AppendFormat("{0} standard single room 单间", dtHotelOrders.Rows[i]["SingleRoomNum"]);
                                hotelDs.Tables["HotelDetailData"].Rows[i]["RoomsInfo"] = tmpStr.ToString();

                                //城市信息
                                DataTable dtCity = BaseInfoCtrl.GetCityDataByName(dtHotelOrders.Rows[i]["DestinationCity"].ToString());
                                if (dtCity.Rows.Count > 0)
                                {
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["DestinationCity"] = dtCity.Rows[0]["Name"] + " / " + dtCity.Rows[0]["EnglishName"];
                                }
                                else
                                    hotelDs.Tables["HotelDetailData"].Rows[i]["DestinationCity"] = dtHotelOrders.Rows[i]["DestinationCity"].ToString();
                            }
                            
                            VoucherDTEnReport voucherDTEnRpt = new VoucherDTEnReport(_TourgroupID, _Names);
                            voucherDTEnRpt.DataSource = hotelDs;
                            if (btn.Equals(btnPreview))
                                voucherDTEnRpt.ShowPreviewDialog();
                            if (btn.Equals(btnPrint))
                                voucherDTEnRpt.PrintDialog();
                            break;
                        default:
                            break;
                    }
                    break;
                case 1://火车
                    switch (voucher2Group.SelectedIndex)
                    {
                        case 0://CE
                            VoucherTrainCEFrReport trainCEFrRpt = new VoucherTrainCEFrReport(_TourgroupID, _Names);
                            //DataTable dtTrainOrders = TrainOrderCtrl.GetTrainOrderData(_TourgroupID);
                            DataTable dtTrainOrders = TeamGroupCtrl.GetTrainDataForVoucher(_TourgroupID);
                            DataTable dtTourgroup = TeamGroupCtrl.GetTeamGroupRowData(_TourgroupID);
                            TrainCEDataSet trainDs = new TrainCEDataSet();
                            for (int i = 0; i < dtTrainOrders.Rows.Count; i++)
                            {
                                //先导入预订数据
                                trainDs.Tables["TrainDetailData"].ImportRow(dtTrainOrders.Rows[i]);

                                //地接社信息和取票地址
                                if (dtTrainOrders.Rows[i]["TicketType"].ToString() == TicketTypeEnum.自订.ToString())
                                {
                                    trainDs.Tables["TrainDetailData"].Rows[i]["TravelAgencyName"] = "北京龙润国际旅行社";

                                    DataTable dtUserInfo = TeamGroupCtrl.GetOwnerADataByTourgroupID(_TourgroupID);
                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", dtUserInfo.Rows[0]["Name"]);
                                    tmpStr.AppendFormat("Tel:{0}", dtUserInfo.Rows[0]["Mobile"]);
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Reception"] = tmpStr.ToString();

                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("China Dynasty Tours ");
                                    tmpStr.AppendFormat("北京龙润国际旅行社有限公司 ");
                                    tmpStr.AppendFormat("tel:010-58706861 ");
                                    tmpStr.AppendFormat("5-103, Peking House, 20A, Rd. Xidawang, Chaoyang Dist.,BEIJING, P.R.CHINA 100124 ");
                                    tmpStr.AppendFormat("北京市朝阳区西大望路甲20号北京首府5号楼103");
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Address"] = tmpStr.ToString();
                                }
                                else if (dtTrainOrders.Rows[i]["TravelAgencyID"] != null && dtTrainOrders.Rows[i]["TravelAgencyID"].ToString() != "-1")
                                 {
                                    ProviderEntity entity = BaseInfoCtrl.GetProviderDataByID(dtTrainOrders.Rows[i]["TravelAgencyID"].ToString());
                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", entity.EnglishName);
                                    tmpStr.AppendFormat("{0}", entity.FullName);
                                    trainDs.Tables["TrainDetailData"].Rows[i]["TravelAgencyName"] = tmpStr.ToString();

                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}\r\n", entity.Contact);
                                    tmpStr.AppendFormat("Tel:{0}", entity.Telephone);
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Reception"] = tmpStr.ToString();

                                    tmpStr.Remove(0, tmpStr.Length);
                                    tmpStr.AppendFormat("{0}", entity.EnglishName);
                                    tmpStr.AppendFormat("{0} ", entity.FullName);
                                    tmpStr.AppendFormat("tel:{0} ", entity.Telephone);
                                    tmpStr.AppendFormat("Address:{0} ", entity.EnglishAddress);
                                    tmpStr.AppendFormat(" {0}", entity.Address);
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Address"] = tmpStr.ToString();
                                }
                                //城市信息
                                DataTable dtCity = BaseInfoCtrl.GetCityDataByName(dtTrainOrders.Rows[i]["StartCity"].ToString());
                                string startCityFr = dtCity.Rows.Count > 0 ? dtCity.Rows[0]["FrenchName"].ToString() : "";
                                dtCity = BaseInfoCtrl.GetCityDataByName(dtTrainOrders.Rows[i]["DestinationCity"].ToString());
                                string destinationCityFr = dtCity.Rows.Count > 0 ? dtCity.Rows[0]["FrenchName"].ToString() : "";
                                trainDs.Tables["TrainDetailData"].Rows[i]["BeginAndEndPosition"] = string.Format("{0}/{1} {2}/{3}", startCityFr, destinationCityFr, dtTrainOrders.Rows[i]["StartCity"], dtTrainOrders.Rows[i]["DestinationCity"]);

                                //出发到达时间
                                trainDs.Tables["TrainDetailData"].Rows[i]["StartTime"] = string.Format("{0} {1}", dtTrainOrders.Rows[i]["Date"], dtTrainOrders.Rows[i]["Time"].ToString());
                                trainDs.Tables["TrainDetailData"].Rows[i]["EndTime"] = string.Format("{0} {1}", dtTrainOrders.Rows[i]["Date"], dtTrainOrders.Rows[i]["Time"]);
                                
                                //票数
                                trainDs.Tables["TrainDetailData"].Rows[i]["TicketsNum"] = int.Parse(dtTourgroup.Rows[0]["AdultNum"].ToString()) + int.Parse(dtTourgroup.Rows[0]["ChildNum"].ToString());

                                //坐席
                                if (dtTrainOrders.Rows[i]["Seat"].ToString() == TrainSeatEnum.高包.ToString())
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Seat"] = string.Format("Couchette molle en cabine privée {0}", TrainSeatEnum.高包.ToString());
                                else if(dtTrainOrders.Rows[i]["Seat"].ToString() == TrainSeatEnum.软卧.ToString())
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Seat"] = string.Format("couchette molle {0}", TrainSeatEnum.软卧.ToString());
                                else if (dtTrainOrders.Rows[i]["Seat"].ToString() == TrainSeatEnum.硬卧.ToString())
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Seat"] = string.Format("Couchette dure {0}", TrainSeatEnum.硬卧.ToString());
                                else if (dtTrainOrders.Rows[i]["Seat"].ToString() == TrainSeatEnum.一等座.ToString())
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Seat"] = string.Format("Siège 1ère classe {0}", TrainSeatEnum.一等座.ToString());
                                else if (dtTrainOrders.Rows[i]["Seat"].ToString() == TrainSeatEnum.二等座.ToString())
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Seat"] = string.Format("Siège 2ème classe {0}", TrainSeatEnum.二等座.ToString());
                                else
                                    trainDs.Tables["TrainDetailData"].Rows[i]["Seat"] = string.Format("Siège {0}", TrainSeatEnum.硬座.ToString());
                                
                            }
                            trainCEFrRpt.DataSource = trainDs;
                            if (btn.Equals(btnPreview))
                                trainCEFrRpt.ShowPreviewDialog();
                            if (btn.Equals(btnPrint))
                                trainCEFrRpt.PrintDialog();
                            break;
                        case 1://TE
                            break;
                        case 2://NH
                            break;
                        case 3://DT(Frehch)
                            break;
                        case 4://AL
                            break;
                        case 5://DT(English)
                            break;
                        default:
                            break;
                    }
                    break;
                case 2://机票
                    switch (voucher2Group.SelectedIndex)
                    {
                        case 0://CE
                            break;
                        case 1://TE
                            break;
                        case 2://NH
                            break;
                        case 3://DT(Frehch)
                            break;
                        case 4://AL
                            break;
                        case 5://DT(English)
                            break;
                        default:
                            break;
                    }
                    break;
                default:
                    break;
            }
        }
        private void btnClose_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
